package cn.wzl.tanks;

import cn.wzl.tanks.abstractfactory.Bullet;
import cn.wzl.tanks.abstractfactory.Tank;

/**
 * @author weiZhiLin
 * @version 1.0
 * @date 2021/6/4 13:48
 */
public class DirFire implements Fire {
    @Override
    public void fire(Tank tank) {
        Dir[] values = Dir.values();
        for (Dir value : values) {
            new Bullet(tank.getX(), tank.getY(), value, tank.getFrame(), tank.getGroup());
        }
    }
}
